//列表
import service from "@/utils/request";
export const getPosts = (params) => {
    return service({
        url: '/posts/list',
        params

    })
}
export const getPostsDetails = (params) => {
    return service({
        url: '/posts/details',
        params

    })
}
export const delReleaseForm = (params) => {
    return service({
        url: '/posts/delReleaseForm',
        params
    })
}
export const postPosts = (data) => {
    return service({
        url: '/posts/releaseForm',
        data,
        method: 'post'

    })
}
export const editPosts = (data) => {
    return service({
        url: '/posts/updateReleaseForm',
        data,
        method: 'post'

    })
}